package com.fh.feign;
import com.fh.fallback.TimeoutQueryClientFallback;
import com.fh.model.Orders;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import java.util.List;

@FeignClient(value = "order-timeout-query",fallback = TimeoutQueryClientFallback.class)
public interface TimeoutQueryClient {

    @GetMapping("timeout/query")
    public List<Orders> query();

}
